Current Location: Home> Function Categories> getrandmax

getrandmax

Show the maximum possible value of random number
Name:getrandmax
Category:math
Programming Language:php
One-line Description:Displays the maximum possible value of the random number.

Definition and usage

getrandmax() function returns the maximum possible value that can be returned by rand() .

Example

Returns the largest possible value of the random number that can be returned by rand():

 <?php
echo ( getrandmax ( ) ) ; 
?>

Run the instance

grammar

 getrandmax ( ) ;
Similar Functions
Popular Articles